@import '@/styles/common/variables.scss';
.hideSidebar{
  #kanban {
    .kanban_views, 
    .kanban_warranty, 
    .kanban_betaTester,
    .kanban_product,
    .kanban_article,
    .kanban_header{
      width: calc(100vw - 92px);
    }
  }
}
#kanban{
  height: calc(100vh - 56px);
  padding: 24px;
  .kanban_header{
    display: flex;
    margin-bottom: 16px;
    >div{
      // width: 20%;
      width: calc((100% - 72px) / 4);
      background-color: #ffffff;
      margin-right: 24px;
      border-radius: 4px;
      &:last-of-type{
        margin-right: 0;  
      }
    }
    .kanban_header_item{
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 12px;
      transition: .3s ease-in-out;
      cursor: pointer;
      &:hover,
      &.active{
        .category,.title,
        .num{
          color: #4AB2FF;
        }
      }
      &:hover{
        transform: scale(1.08) translateZ(0);
        box-shadow: 0px 2px 12px rgba(48, 48, 48, 0.08);
      }
      >div{  
        width: calc(100% - 72px - 12px);
        .title{
          width: 100%;
          height: 45px;
          line-height: 1.8;
        }
      }
      >.el-image{
        width: 72px;
        height: 72px;
      }
      .num{
        font-size: 34px;
        color: #303030;
        font-weight: 700;
      }
      .category{
        margin-top: 8px;
        color: #303030;
        font-size: 14px;
        white-space: nowrap;
      }
      .title{
        color: #303030;
        font-size: 14px;
        text-overflow: -o-ellipsis-lastline;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
      }

    }
  }
  // 今日流量
  .kanban_views,
  .kanban_warranty,
  .kanban_betaTester,
  .kanban_product,
  .kanban_article{
    height: calc(100% - 96px - 16px - 24px ) ;
  }
  .views {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    .views_left{
      display: inline-block;
      width: calc((100% - 24px)* 0.6 + 6px);
      padding: 16px 24px 0;   
      background-color: #ffffff;   
      margin-right: 12px;
      .form_search {
        .el-form{
          >.el-select{
            width: 20%;
          }
          >.timePicker{
            max-width: 188px;
            min-width: 110px;
            width: 50%;
          }
        }
      }
    }
    .views_right{
      display: inline-block;
      width: calc((100% - 24px)* 0.4 - 6px);
      padding: 16px 24px 0;  
      background-color: #ffffff;
      margin-left: 12px;
      padding-bottom: 16px;
      .form_search {
        .el-form{
          >.el-select{
            width: 35%;
          }
          >.timePicker{
            max-width: 188px;
            min-width: 110px;
            width: 50%;
          }
        }
      }
    }
    p.title{
      color: #303030;
      font-size: 14px;
      font-weight: 900;

    }
    .form_search {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin: 16px 0 16px;
      .el-form{
        width: calc(100% - 76px);
        >.el-select,
        >.timePicker{
          display: inline-block;
          margin-right: 16px;
        }
        >.el-select.cycle{
          width: 80px;
        }
      }
    }
    .form_btn{
      .el-button{
        padding: 3px 9px;
        .icon-search_normal{
          color: #ffffff;
        }
      }
    }
  }

  .kanban_betaTester,
  .kanban_warranty{
    .views{
      height: 50%;
      overflow: hidden;
      &:last-of-type{ margin-top: 16px;}
      .views_left{
        background-color: #ffffff;
      }
    }
    #demo{
      height: calc((100vh - 478px) / 2) ;
    }
  }
  .kanban_betaTester{

  }
  .kanban_article,
  .kanban_product{
    .views_left{
      background-color: transparent;
      padding: 0;
    }
    .views_left_top,
    .views_left_bottom{
      background-color: #ffffff;
      padding: 16px 24px 0;   
    }
    .views_left_bottom{
      margin-top: 16px;
      background-color: #ffffff;
      padding: 16px 24px 16px;   
    }
  }
  .kanban_article  .views .views_right,
  .kanban_product  .views .views_right {
    .form_search{
      display: block;
      position: relative;
      .el-form{
        width: 100%;
        >.timePicker{ margin-bottom: 16px; }
        >.el-select{
          width: 188px;
          margin-bottom: 16px;
          &:nth-of-type(3) {
            margin-right: 0;
            width: 50%;
            max-width: 188px;
          }
          &:nth-of-type(4) {
            margin-bottom: 0px;
          }
        }
      }
      .form_btn{
        position: absolute;
        right: 0;
        bottom: 0;
  
      }
    }
  }
  .views .views_trend.views_left {
    padding: 16px 24px 16px;
  }

}


#kanban {
  @include respond('1680'){
    .views {
      .form_search{
        .el-form {
          > .timePicker,
          >.el-select{
            margin-right: 8px;
          }
          > .el-select.cycle{
            width: 60px;
          }
        }
      } 
      .views_left{ margin-right: 8px;width: calc((100% - 16px)* 0.6  + 4px)}
      .views_right{ margin-left: 8px;width: calc((100% - 16px)* 0.4  - 4px)}
      .views_left .form_search .el-form > .timePicker {width: 30%;}
    }

    .kanban_header{
      .kanban_header_item {
        margin-right: 16px;
        width: calc((100% - 16px*3) / 4);;
        >div{
          width: calc(100% - 53px);
        }
        >.el-image{
          min-width: 53px;
          width: 53px;
          height: 53px;
        }
      }

    }
    .kanban_warranty{
      .views {
        .warranty_time.views_right {
          .form_search {
            .el-form{
              width: calc(100% - 77px);
            }
          }
        }
        .warranty_time,
        .warranty_sale{
          .el-select:not(.cycle){
            width: 22%;
            &:last-of-type{
              margin-right: 0;
            }
          }
        }
      }
    }
    .kanban_betaTester{
      .views { 
        .betatester_time.views_right {
          .form_search {
            .el-form{
              width: calc(100% - 77px);
            }
          }
        }
        .betatester_time,
        .betatester_transWB{
          .el-select:not(.cycle){
            width: 22%;
            &:last-of-type{
              margin-right: 0;
            }
          }
        }
      }
    }
    .kanban_product{
      .views{
        .views_right{
          .form_search{
            display: flex;
            align-items: flex-start;
            .el-form{
              width: calc(100% - 100px);
              >.timePicker{
                margin-right: 0;
              }
              >.el-select:nth-child(even){
                width: 42%;
                margin-left: 10px;
                margin-right: 0;
              }
            }
            .form_btn{
              position: relative;
            }
          }
        }
        .views_left{
          .product_visit,
          .product_trans{
            .form_search{
              align-items: flex-start;
              .el-form{
                display: block;
                .el-select:nth-of-type(3){
                  width: 19%;
                }
                .el-select:nth-of-type(4){
                  width: 30%;
                }
              }
            }
          }
        }
      }
    }
    .kanban_article{
      .views{
        .views_right{
          .form_search{
            display: flex;
            align-items: flex-start;
            .el-form{
              width: calc(100% - 100px);
              >.timePicker{
                margin-right: 0;
              }
              >.el-select:nth-child(even){
                width: 42%;
                margin-left: 10px;
                margin-right: 0;
              }
            }
            .form_btn{
              position: relative;
            }

          }
        }

      }
    }
  }
}

//  1280 ~ 1680适配/
#kanban {
  @include respond('1281'){
    
     overflow: auto;
     padding: 0 24px 24px ;
    .kanban_header{
      position: fixed;
      width: 100%;
      width: calc(100% - 264px);
      min-width: 1016px;
      z-index: 20;
      padding-top: 24px;
      background-color: #f9f9f9;
      padding-bottom: 16px;
      margin-bottom: 0;
    }
   .kanban_betaTester .views, 
   .kanban_warranty .views{
      height: auto;
    }
   
    
    .kanban_warranty{
      #charts_warranty_sale{
        min-height: 200px;
      }
    }
    .kanban_views,.kanban_warranty,.kanban_betaTester, .kanban_product, .kanban_article{
      position: relative;
      top: 138px;
      width: calc(100vw - 264px);
      min-width: 1016px;
    }
    .kanban_article .views,
    .kanban_product .views,
    .kanban_betaTester .views:last-of-type, 
    .kanban_warranty .views:last-of-type{
     padding-bottom: 24px;

    }
    #charts_warranty_visit,#charts_warranty_trans,#charts_warranty_sale,#charts_warranty_time,
    #charts_betatester_visit,#charts_betatester_trans,#charts_betatester_transWB ,#charts_betatester_time,
    #charts_product_visit, #charts_product_trans,
    #charts_article_visit {min-height: 200px;}

    .views .views_right .form_search .el-form > .timePicker {width: 46%;}
    .views {
      .form_search{
        .el-form {
          > .timePicker,
          >.el-select{
            margin-right: 8px;
          }
          > .el-select.cycle{
            width: 60px;
          }
        }
      } 
      .views_left{ margin-right: 8px;width: calc((100% - 16px)* 0.6 + 2px);}
      .views_right{ margin-left: 8px;width: calc((100% - 16px)* 0.4) - 2px;}
    }
    .kanban_header{
      .kanban_header_item {
        margin-right: 16px;
        >div{
          width: calc(100% - 53px);
        }
        >.el-image{
          min-width: 53px;
          width: 53px;
          height: 53px;
        }
      }

    }
    .kanban_warranty{
      .views {
        .warranty_time.views_right {
          .form_search {
            .el-form{
              width: calc(100% - 77px);
            }
          }
        }
        .warranty_time,
        .warranty_sale{
          .el-select:not(.cycle){
            width: 22%;
            &:last-of-type{
              margin-right: 0;
            }
          }
        }
      }
    }
    .kanban_betaTester{
      .views { 
        .betatester_time.views_right {
          .form_search {
            .el-form{
              width: calc(100% - 77px);
            }
          }
        }
        .betatester_time,
        .betatester_transWB{
          .el-select:not(.cycle){
            width: 22%;
            &:last-of-type{
              margin-right: 0;
            }
          }
        }
      }
    }
    .kanban_product,
    .kanban_article{
      .views{
        .views_right{
          .form_search{
            .el-form{
              >.timePicker{
                margin-right: 0;
                width: 50%;
              }
              >.el-select{
                width: 50%;
                min-width: 110px;
                max-width: 188px;
                margin-bottom: 16px;
                &:nth-of-type(3) {
                  margin-right: 0;
                  margin-bottom: 0;
                }
                &:nth-of-type(4) {
                  margin-bottom: 0px;
                }
              }
            }


          }
          .el-table{
            min-height: 484px;
          }
        }
      }
    }
    .kanban_article{
      .views{
        .views_left{
          .article_trans {
            .el-table{
              min-height: 200px;
            }
          }
        }
      }
    }
    .kanban_product{
      .views{
        .views_left{
          .product_visit,
          .product_trans{
            .form_search{
              align-items: flex-start;
              .el-form{
                display: block;
              }
            }
          }
          
        }
      }
    }
  }
}
#kanban {
  @include respond('1681'){
    overflow: inherit;
    .kanban_header{
      >.kanban_header_item{
        margin-right: 24px;
      }
    }
    .views {
      .views_left{ margin-right: 12px;width: calc((100% - 24px)* 0.6 + 6px);}
      .views_right{ margin-left: 12px;width: calc((100% - 24px)* 0.4 - 6px);}
    }
    .kanban_article  .views .views_right,
    .kanban_product  .views .views_right {
      .form_search{
        display: block;
        position: relative;
        .el-form{
          width: 100%;
          >.timePicker{ margin-bottom: 16px; margin-right: 16px; }
          >.el-select{
            width: 188px;
            margin-bottom: 16px;
            margin-right: 16px;
            &:nth-of-type(3) {
              margin-right: 0;
              width: 50%;
              max-width: 188px;
            }
            &:nth-of-type(4) {
              margin-bottom: 0px;
            }
          }
        }
        .form_btn{
          position: absolute;
          right: 0;
          bottom: 0;
    
        }
      }
    }
  }
}
// 1280
#kanban { 
  @include respond('1280'){
    .kanban_header{
      position: relative;
    }
    .kanban_views,
    .kanban_warranty,
    .kanban_betaTester,
    .kanban_product,
    .kanban_article{
      top: 0;
    }
  }
}
